package xuan.mall.system.infrastructure.security.config;

import lombok.Getter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author: rongxuanzhou
 * @create: 2025/5/31
 * @Description:
 */

@Getter
@Configuration
@ConfigurationProperties(prefix = "jwt")
public class JWTConfig {
    /**
     * secret
     */
    public static String secret;

    /**
     * signature
     */
    public static String signature;

    /**
     * 过期时间
     */
    public static Integer expiration;

    public void setSecret(String secret) {
        JWTConfig.secret = secret;
    }

    public void setSignature(String signature) {
        JWTConfig.signature = signature;
    }

    public void setExpiration(Integer expiration) {
        JWTConfig.expiration = expiration;
    }
}
